import request from '@/utils/request'

export default {
  findTeacherByPage(currentPage, limit, teacher) {
    return request({
      // url: '/teacher/conditionsQuery',
      url: `/teacher/conditionsQuery/${currentPage}/${limit}`,
      method: 'post',
      data: teacher

    })
  },
  deleteTeacher(id) {
    return request({
      url: `/teacher/deleteTeacher`,
      method: 'post',
      data: [id]

    })
  },
  addTeacher(teacher) {
    return request({
      url: `/teacher/addTeacher`,
      method: 'post',
      data: teacher

    })
  },
  findTeacherByID(id) {
    return request({
      url: `/teacher/${id}`,
      method: 'post'
    })
  },
  updateTeacherById(teacher) {
    return request({
      url: `/teacher/updateTeacher`,
      method: 'post',
      data: teacher
    })
  },
  getTeacherList() {
    return request({
        url: `/teacher/getTeacherList`,
        method: 'post'
    })
}
}






